home *** CD-ROM | disk | FTP | other *** search
- Path: dish.news.pipex.net!pipex!bt!usenet
- From: dathomas@tymnet.bt.co.uk (David 'Alwyn' Thomas)
- Newsgroups: comp.lang.c++
- Subject: basic_string and STL
- Date: 7 Mar 1996 15:49:13 GMT
- Organization: BT London Software Engineering Centre at City Forum
- Message-ID: <4hn0hp$eqp@pheidippides.axion.bt.co.uk>
- References: <313F0353.41C67EA6@pia.bt.co.uk>
- NNTP-Posting-Host: 147.150.193.214
- Mime-Version: 1.0
- Content-Type: text/plain; charset=US-ASCII
- Content-Transfer-Encoding: 7bit
-
-
- When I try to use container classes using string, I then to get compiler
- errors complaining of various ambiguous function declarations in
- basic_string; the offenders are certain relational operators, as shown
- by the following example.
-
- In file included from /usr/local/lib/g++-include/std/bastring.h:571,
- from /usr/local/lib/g++-include/std/string.h:6,
- from /usr/local/lib/g++-include/string:5,
- from test.cc:5:
- /usr/local/lib/g++-include/std/sinst.h:60: ambiguous template
- instantiation for `operator !=(const char *, const
- basic_string<char,string_char_traits<char> > &)' requested
-
- etc.
-
- Has anyone seen this before? Is it a general fault with string and STL,
- or is it rather to do with shortcomings in g++?
-
-
- Alwyn
-
-
-
-